package com.atguigu.mock.repository;

import com.atguigu.common.base.repository.BaseRepository;
import com.atguigu.mock.entity.OrderInfo;
import com.atguigu.mock.entity.Payment;

import java.util.Collection;
import java.util.List;

public interface PaymentRepository extends BaseRepository<Payment, Long> {

    List<Payment> findByOrderInfoIn(List<OrderInfo> orderInfoList);

    List<Payment> findByStatusIn(Collection<Integer> statuses);
}